<!DOCTYPE html>
<html>
<head>
    <title>实时 Unix 时间戳</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
            height: 100vh;
            margin: 0;
            color: #333;
            background: linear-gradient(-45deg, #23d5ab, #23a6d5, #c060a1, #f0c408);
            background-size: 400% 400%;
            animation: Gradient 15s ease infinite;
        }

        .box {
            background: rgba(255, 255, 255, 0.8);
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            text-align: center;
            max-width: 600px;
            width: 90%;
        }

        .box:hover {
            box-shadow: 0px 0px 15px rgba(0,255,255,0.4);
        }

        h2 {
            font-size: 2.5em;
            margin-bottom: 20px;
        }

        #timestamp, #localTime, #utcTime, #loadTime, #visitCount {
            font-size: 2em;
            color: #333;
        }

        .highlight {
            color: #000;
            font-weight: bold;
            display: block;
            margin-top: 10px;
            margin-bottom: 10px;
            font-family: 'Lucida Console', Monaco, monospace;
        }

        @keyframes Gradient {
            0% {
                background-position: 0% 50%
            }
            50% {
                background-position: 100% 50%
            }
            100% {
                background-position: 0% 50%
            }
        }
		.source-button {
    		display: inline-block;
    		background-color: #007BFF;
    		color: #fff;
    		padding: 10px 20px;
    		border-radius: 5px;
    		text-decoration: none;
    		transition: background-color 0.3s ease;
		}

		.source-button:hover {
    		background-color: #0056b3;
		}
    </style>

    <script>
        window.onload = function() {
            setInterval(function() {
                var date = new Date();
                var unixTimestamp = Math.floor(date.getTime() / 1000);
                document.getElementById("timestamp").textContent = unixTimestamp;

                document.getElementById("localTime").textContent = date.toLocaleString();

                document.getElementById("utcTime").textContent = date.toUTCString();
            }, 1000);
        };
    </script>
</head>
<body>
    <div class="box">
        <h2>实时 Unix 时间戳</h2>
        <p id="timestamp">Loading...</p>
    </div>
    <div class="box">
        <h3>什么是 Unix 时间戳？</h3>
        <p>Unix 时间戳是自 1970 年 1 月 1 日（UTC/GMT 的午夜）开始所经过的秒数，不考虑闰秒。</p>
        <p>简单来说，Unix 时间戳是一种时间表示方式，这种方式以整数的形式来表示时间，以便于人与计算机进行时间的交互。</p>
        <p class="highlight">Unix 时间戳 = (number of seconds since 1970-01-01 00:00:00 UTC) + 1</p>
    </div>
    <div class="box">
    <p>本网站由 GPT-4 语言模型生成、热铁盒软件进行托管的，在此一并表示感谢！</p>
    <p>你完全可以 <a href="https://gitee.com/FuckIt5444/the-unix-timestamp-show/blob/master/index.html#" class="source-button">点击这里</a> 来查看本网站源代码。</p>
	</div>
</body>
</html>